package com.esun.cheetah.view.setting;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.LinearLayout;

import com.esun.cheetah.R;

public class ChooseSuggest extends Activity implements OnClickListener{
	private Button btnBack;
	private LinearLayout llytUserSuggest;
	private LinearLayout llytGoodRep;
	
@Override
protected void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setContentView(R.layout.choose_suggest);
	initViews();
}

private void initViews() {
	llytGoodRep=(LinearLayout) findViewById(R.id.llytGoodRep);
	llytUserSuggest=(LinearLayout) findViewById(R.id.llytUserSuggest);
	llytUserSuggest.setOnClickListener(this);
	llytGoodRep.setOnClickListener(this);
	btnBack=(Button) findViewById(R.id.btnChooseSuggestBack);
	btnBack.setOnClickListener(this);
}

@Override
public void onClick(View v) {
	Intent mIntetn=new Intent();
	switch (v.getId()) {
	case R.id.btnChooseSuggestBack:
		finish();
		break;
	case R.id.llytUserSuggest:
		
		mIntetn.setClass(this, UserSuggestAct.class);
		startActivity(mIntetn);
		break;
	case R.id.llytGoodRep:
		mIntetn.setClass(this, GoodRep.class);
		startActivity(mIntetn);
		break;

	default:
		break;
	}
	
}
}
